Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Conversation

@0ubbe
Copy link
Contributor

@0ubbe 0ubbe commented Dec 8, 2021

Changes 💡

Following out update of jose nextauthjs/next-auth#3039, the way to configure jwt changed. These are the options changes I inferred from the PR:

export default NextAuth({
  // ...
  jwt: {
    secret,
    maxAge,
-   encryptionKey
-   signingKey
-   encryptionKey
-   verificationOptions
    encode({
        token
        secret
        maxAge
-       signingKey
-       signingOptions
-       encryptionKey
-       encryptionOptions
-       encryption
    }) {},
    decode({
        token
        secret
-       maxAge
-       signingKey
-       verificationKey
-       verificationOptions
-       encryptionKey
-       decryptionKey
-       decryptionOptions
-       encryption
    }) {}
  }
})

I updated the relevant docs I could find mentioning jwt config in v4. I lack a bit of context for this 🎻

Affected issues 🎟

#87

Screenshot (If Applicable) 📷

@0ubbe 0ubbe requested review from balazsorban44 and ndom91 December 8, 2021 11:08
@vercel
Copy link

vercel bot commented Dec 8, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nextauthjs/docs/3upWGHLeVRudNiqEhFoGPj2qAbiw
✅ Preview: https://docs-git-issue-87-nextauthjs.vercel.app

@0ubbe 0ubbe merged commit 731c228 into main Dec 8, 2021
@0ubbe 0ubbe deleted the issue-87 branch December 8, 2021 20:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants